package com.hyh.domain.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;


@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class ItemAddDTO {

    @ApiModelProperty(value = "商品名称")
    @NotNull(message = "商品名称不能为空")
    private String itemName;

    @ApiModelProperty(value = "商品价格")
    @NotNull(message = "请设置商品价格")
    private Double price;

    @ApiModelProperty(value = "商品状态， 1 正常 2 停售")
    @NotNull(message = "请设置商品状态")
    private Integer status;

    @ApiModelProperty(value = "商品产商")
    @NotNull(message = "商品产商不能为空")
    private String company;
}
